package com.test.service.impl;

import com.test.mapper.OrderMapper;
import com.test.pojo.Order;
import com.test.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Order> getAllOrder() {
        return orderMapper.getAllOrder();
    }

    @Override
    public void updateOrder(Order order) {
       orderMapper.updateOrder(order);
    }
}
